/// buildingId : 103
/// buildingName : "2"
/// floorId : 688
/// floorName : "1F"
/// number : null
/// roomId : 3764
/// roomNo : "2101"

class RoomListData {
  RoomListData(
      {this.buildingId,
      this.buildingName,
      this.floorId,
      this.floorName,
      this.number,
      this.roomId,
      this.roomNo,
      this.iotId});

  RoomListData.fromJson(dynamic json) {
    buildingId = json['buildingId'];
    buildingName = json['buildingName'];
    floorId = json['floorId'];
    floorName = json['floorName'];
    number = json['number'];
    roomId = json['roomId'];
    roomNo = json['roomNo'];
    iotId = json['iotId'];
  }

  int? buildingId;
  String? buildingName;
  int? floorId;
  String? floorName;
  dynamic number;
  String? ordinalNumber;
  int? roomId;
  num? iotId;
  String? roomNo;
  dynamic readingTime;
  dynamic meterReadingType;

  RoomListData copyWith({
    int? buildingId,
    String? buildingName,
    int? floorId,
    String? floorName,
    dynamic number,
    int? roomId,
    String? roomNo,
    num? iotId,
  }) =>
      RoomListData(
        buildingId: buildingId ?? this.buildingId,
        buildingName: buildingName ?? this.buildingName,
        floorId: floorId ?? this.floorId,
        floorName: floorName ?? this.floorName,
        number: number ?? this.number,
        roomId: roomId ?? this.roomId,
        roomNo: roomNo ?? this.roomNo,
        iotId: iotId ?? this.iotId,
      );

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['buildingId'] = buildingId;
    map['buildingName'] = buildingName;
    map['floorId'] = floorId;
    map['floorName'] = floorName;
    map['number'] = number;
    map['roomId'] = roomId;
    map['roomNo'] = roomNo;
    map['iotId'] = iotId;
    return map;
  }
}
